<template>
  <!-- <img src="./assets/logo.png">
  <div>
    <el-button type="primary">el-button</el-button>
  </div> -->
  <!-- <HelloWorld msg="Welcome to Your Vue.js App" /> -->
  <!-- <Layout /> -->
  <router-view></router-view>
</template>

<script lang="ts">
// import HelloWorld from './components/HelloWorld.vue'
// import Layout from '@/layout'
import { getCurrentInstance, defineComponent } from 'vue';
import { useGenerateTheme } from './hooks/useGenerateTheme';

export default defineComponent({
  name: 'App',
  components: {
    // HelloWorld
    // Layout
  },
  setup() {
    const { proxy } = getCurrentInstance()!;
    proxy?.$message.success('suc!');
    console.log(proxy);
    // ctx.$message
    // 根据此时store中主题色生成
    useGenerateTheme();
  }
});
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
